package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

// Teste de for
public class For1 extends AtomicActor {

   public For1(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);

   }

   public void fire() throws IllegalActionException {   
       int a = 2;

       for(int i = 0,j = 3;i < 10;i = i + 1, j++) {
           System.out.println(a + i);
	   System.out.println(j);
	   a = 3 * i;
       }

       for(int i = 0;i < 12;i = i + 1) {
         a = i + 1;

	 if(a == 10) {
	     continue;
	 } 
	 if(a == 23) {
	    break;
	 }

	 if(a == 15) {
	     return;
	 }

       }
   }

}
